$(document).ready(function() {
	var largeImg = $("#main");
	var thumb = $("table#gallery a");
	
	thumb.click(function(){
		var newSrc=$(this).attr("href");
		
		largeImg.attr({src: newSrc});
		largeImg.stop();
		largeImg.css("opacity","0").fadeTo("slow",1);
		return false;
		})
});